package day15_Thread.作业.作业1;

public class Test {
    public static void main(String[] args) {
        sell sell1 = new sell();
//        for (int i = 1; i <=5; i++) {
//         new Thread(sell1,"售票机"+i).start();
//        }
        Thread a1 = new Thread(sell1, "售票机1");
        Thread a2 = new Thread(sell1, "售票机2");
        Thread a3 = new Thread(sell1, "售票机3");
        Thread a4 = new Thread(sell1, "售票机4");
        Thread a5 = new Thread(sell1, "售票机5");
        a1.start();
        a2.start();
        a3.start();
        a4.start();
        a5.start();
    }
}
